from manim import *

class SquareToCircle(Scene):
    def construct(self):
        circle = Circle()
        circle.set_fill(color=PINK, opacity=0.5)

        square = Square()
        square.rotate(angle=PI/4)

        self.play(Create(mobject=square))
        self.play(Transform(mobject=square, target_mobject=circle))
        self.play(FadeOut(square))